import { http } from "@/uni-sub-base/service/request.js"
import configs from "@/config/config.js"
let serviceName = configs.baseUrl + "Starcoupon/"

//领取星券
export function GiveStarcoupon(data) {
    return http.post({
        url: serviceName + "GiveStarcoupon?couponCode=" + data.couponCode + "&pwdcode=" + data.pwdcode,
    })
}
//领取星券加密
export function GiveStarcouponByEnId(enId) {
    return http.post({
        url: serviceName + "GiveStarcouponByEnId?enId=" + enId,
    })
}

//领取星券加密
export function GetCodePage(data) {
    return http.post({
        url: serviceName + "GetCodePage?pageIndex=" + data.pageIndex + "&pageSize=" + data.pageSize,
    })
}
